// customNonDBVariable.cpp: implementation of the CustomNonDBVariable class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "customNonDBVariable.h"
#include "PropertyVisitor.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

namespace PropertySystem
{
	CustomNonDBVariable::CustomNonDBVariable()
	{		
		PropertVar(this);
		m_bIsCustom = TRUE;
	}
	
	CustomNonDBVariable::~CustomNonDBVariable()
	{
		
	}
	
	BOOL CustomNonDBVariable::Accept(PropertyVisitor& visitor)
	{
		return visitor.Visit(this);
	}
	
	PropertyVariable* CustomNonDBVariable::Clone()
	{
		CustomNonDBVariable* pVar = new CustomNonDBVariable;
		ASSERT_MEMORY_VALID(pVar, NULL);

		this->CopyCustomData(*pVar, *this);
		this->CopyPropertyData(*pVar, *this);

		return pVar;
	}
}
